import request from '@/utils/request'

export const getCategoryAPI = () => {
  return request.get('/my/cate/list')
}

export const addCategoryAPI = data => {
  return request.post('/my/cate/add', data)
}
export const delCategoryAPI = id => {
  return request.delete('/my/cate/del', { params: id })
}
export const updateCategoryAPI = data => {
  return request.put('/my/cate/info', data)
}
